import request from '@/utils/request'

/**
 * 获取职务列表
 */
export function getPositionList (data) {
    return request({
        url: '/MRMS/api/Duty/Page',
        method: 'post',
        data
    })
}

/**
 * 添加职务
 */
export function addPosition (data) {
    return request({
        url: '/MRMS/api/Duty/Add',
        method: 'post',
        data
    })
}

/**
 * 编辑职务
 */
export function editPosition (data) {
    return request({
        url: '/MRMS/api/Duty/Edit',
        method: 'post',
        data
    })
}

/**
 * 修改启停
 */
export function changeState (data) {
    return request({
        url: '/MRMS/api/Duty/ChangeState',
        method: 'post',
        data
    })
}
